package com.mis.pos.repository;

import com.mis.pos.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @description: 用户DAO
 * @author: yuxiang
 * @create: 2019-12-12 15:36
 **/
@Repository
public interface UserRepository extends JpaRepository<UserEntity,Long> {
    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    UserEntity findUserEntityByUsername(String username);

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    UserEntity findUserEntityById(Long id);
}